package com.lesama.test;



import java.util.Calendar;

public class CalendarTest1 {
    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
        calendar.set(2050, Calendar.MARCH, 1);
        int weekday = calendar.get(Calendar.DAY_OF_WEEK);
        System.out.println(weekday);
        if(weekday == Calendar.THURSDAY) {
            System.out.println("疯狂星期四");
        } else {
            System.out.println("不是捏");
        }
    }
}